﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using System.Drawing;

namespace TuyenDungViecLam.Admin
{
    public partial class CreateRole : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void BtCreateRole_Click(object sender, EventArgs e)
        {
            bool kq = User_BUS.InsertRole(txtRolename.Text, TxtDescription.Text);

            if (kq == true)
            {
                divCapnhat.Visible = false;
                divThongbao.Visible = true;
                lbThongbao.Text = "Tạo role thành công";
                lbThongbao.ForeColor = Color.Blue;
            }
            else
            {
                divThongbao.Visible = true;
                lbThongbao.Text = "Tạo Role thất bại";
                lbThongbao.ForeColor = Color.Red;
            }
        }
    }
}
